package com.sanyu.controller.admin;

import com.sanyu.pojo.dto.PositionDTO;
import com.sanyu.pojo.vo.PositionVO;
import com.sanyu.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin/position")
@Api("后台管理页面/位置管理相关接口")
public class PositionController {

    @GetMapping("/{id}")
    @ApiOperation("根据ID获取位置")
    public Result<PositionVO> detail(@PathVariable Long id){
        return Result.success(new PositionVO());
    }

    @PostMapping("/add")
    @ApiOperation("新增位置")
    public Result add(@RequestBody PositionDTO positionDTO){
        return Result.success();
    }

}
